package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 项目实践表单对象
 *
 * @author hypersense
 * @since 2025-03-14 22:49
 */
@Getter
@Setter
@Schema(description = "项目实践表单对象")
public class ProjectForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "项目ID")
    private Long id;

    @Schema(description = "项目名称")
    @Size(max=50, message="项目名称长度不能超过50个字符")
    private String name;

    @Schema(description = "技术栈")
    private List<String> techs;

    @Schema(description = "项目简介")
    @Size(max=255, message="项目简介长度不能超过255个字符")
    private String description;

    @Schema(description = "项目地址")
    @Size(max=255, message="项目地址长度不能超过255个字符")
    private String repo;

    @Schema(description = "项目内容")
    @Size(max=65535, message="项目内容长度不能超过65535个字符")
    private String content;

    @Schema(description = "项目时间")
    @Size(max=10, message="项目时间长度不能超过10个字符")
    private String date;

}
